/**
 * http://www.jianshu.com/p/e85ee8572f7a
 * http://www.haorooms.com/post/js_require_zz
 * http://www.tuicool.com/articles/jam2Anv
 * http://www.cnblogs.com/snandy/archive/2012/05/22/2513652.html
 * Created by xu on 2015/12/22.
 */

require.config({
    paths: {
        //jquery: resourcePath+'/js/comm/jquery',
        domReady:path+'/js/domReady',
        thresholdHomeJs:path+'/js/settings/threshold/thresholdHome',
        commBuild:resourcePath+'/js/comm/build'
        //,laydateJs:resourcePath+'/tags/laydate/laydate'
    },
    shim:{
        thresholdHomeJs:{
            init:function(){
                return {
                    getThresoldData:getThresoldData,
                    getThresoldGroupList:getThresoldGroupList
                }
            }
        }
        //getThresoldData:{exports:'getThresoldData'}
    }
});

require(['domReady','thresholdHomeJs','commBuild'], function(domReady,thresholdHome,commBuild) {
    domReady(function () {
        thresholdHome.getThresoldData();
        thresholdHome.getThresoldGroupList();
    });
        /*thresholdHome.getThresoldData();
        thresholdHome.getThresoldGroupList();*/

},function(err){
    console.log(err)
});